home *** CD-ROM | disk | FTP | other *** search
- Path: news.intelenet.com!usenet
- From: james@superstore.com
- Newsgroups: comp.lang.c
- Subject: Re: What is '?' in C mean....????? - key.c (0/1)
- Date: Wed, 17 Jan 1996 01:05:23 GMT
- Organization: InteleNet Communications, Inc.
- Message-ID: <4dhj0j$bms@nikita.intelenet.net>
- References: <4cgsa8$bm2@wumpus.cc.uow.edu.au> <fcusack-0401961115540001@mudskipper.cac.psu.edu> <4ci5bb$8m4@www.gnofn.org> <4cvuk9$b18@osfa.aber.ac.uk> <1f7cc$15d10.235@kc.darknet.com>
- NNTP-Posting-Host: 205.162.86.151
- X-Newsreader: Forte Free Agent 1.0.82
-
- drewman@darknet.com (The Drew Man (:|=) wrote:
-
-
- >>>I've been programming in standard C for 12 years, and
- >>>never saw THAT in the manuals.
- >>Maybe you should read them!
-
- >Ohhhhhh, the DIS!
-
- >-Drew (aka "Mr. Silly Pants")
-
- there is an operator ?:
-
- which works like this
-
- exp1 ? exp2: exp3;
-
- if exp1 is true then evaluate exp2 else evaluate exp3
-
- i've sent some code that may help explain
-
-
-